<%@page import="com.jsz.peini.common.util.PeiniUtils"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML>
<html>
  <head>
    <base href="<%=basePath%>">
    
    <meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0,user-scalable=no" name="viewport" id="viewport" />
	<title>陪你</title>
	<link rel="stylesheet" type="text/css" href="css/index.css">
	<style type="text/css">
	section{
		border:0;
		height: 100%;
	}
	section div.pic {
	height: 100%;
	width: 100%;
	}
	section div.pic img{
	height: 100%;
	width: 100%;
	}
	</style>

  </head>
  
  <body>
    <section>
		<div class="pic">
			<img src="${imgUrl }" alt="">
		</div>
	</section>
	<section class="down">
	 	<div>
	 		<span>来这里陪你</span>
	 		<!-- <input type="button" value="立即下载" onclick="download()"> -->
	 		<button onclick="download()">立即下载</button>
	 	</div>
	 </section>
	 
	 <script type="text/javascript">
		function download(){
			var u = navigator.userAgent;
		    var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
		    var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
		    if(isAndroid == true){
		    	//alert("安卓");
		    	location.href="<%=PeiniUtils.ANDROIDURL%>";
		    }else{
		    	location.href="<%=PeiniUtils.IOSURL%>";
		    }
		    /* alert('是否是Android：'+isAndroid);
		    alert('是否是iOS：'+isiOS); */
		}
	</script>
  </body>
</html>
